package com.czwj.service.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.czwj.dao.InspectionItemMapper;
import com.czwj.entities.InspectionItem;
import com.czwj.service.InspectionItemService;
@Service
public class InspectionItemServiceImpl implements InspectionItemService {
	@Resource
	InspectionItemMapper mapper;
	
	@Override
	public List<InspectionItem> search(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.search(map);
	}

	@Override
	public int count(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.count(map);
	}

	@Override
	public int update(InspectionItem inspectionItem) {
		// TODO Auto-generated method stub
		return this.mapper.updateByPrimaryKeySelective(inspectionItem);
	}

	@Override
	public int insert(InspectionItem inspectionItem) {
		// TODO Auto-generated method stub
		return this.mapper.insert(inspectionItem);
	}

	@Override
	public int updateStatus(int id) {
		// TODO Auto-generated method stub
		return this.mapper.updateStatus(id);
	}

	@Override
	public int updateStatusOpen(int id) {
		// TODO Auto-generated method stub
		return this.mapper.updateStatusOpen(id);
	}

	@Override
	public InspectionItem selectByPrimaryKey(int inspectionItemId) {
		// TODO Auto-generated method stub
		return this.mapper.selectByPrimaryKey(inspectionItemId);
	}

	@Override
	public InspectionItem searchBySort(Map<String, Object> map) {
		// TODO Auto-generated method stub
		return this.mapper.searchBySort(map);
	}

	@Override
	public int sortReduce(InspectionItem ii) {
		// TODO Auto-generated method stub
		return this.mapper.sortReduce(ii);
	}

	@Override
	public int sortAdd(InspectionItem ii0) {
		// TODO Auto-generated method stub
		return this.mapper.sortAdd(ii0);
	}

}
